projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a32321
)
(isearch-edit-string): Erase the Search prompt
author
Richard M. Stallman
<rms@gnu.org>
Thu, 25 Aug 2005 10:58:48 +0000
(10:58 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 25 Aug 2005 10:58:48 +0000
(10:58 +0000)
if user enters an empty string and there is no default.
lisp/isearch.el
patch
|
blob
|
history
diff --git
a/lisp/isearch.el
b/lisp/isearch.el
index f3fc51778e9baa2982eaf526333e11e597d9cfee..9e396f27545caf9998802edaeb7857d8fcff1a12 100644
(file)
--- a/
lisp/isearch.el
+++ b/
lisp/isearch.el
@@
-1072,7
+1072,11
@@
If first char entered is \\[isearch-yank-word-or-char], then do word search inst
(if isearch-nonincremental
(progn
;; (sit-for 1) ;; needed if isearch-done does: (message "")
- (isearch-done))))
+ (isearch-done)
+ ;; The search done message is confusing when the string
+ ;; is empty, so erase it.
+ (if (equal isearch-string "")
+ (message "")))))
(quit ; handle abort-recursive-edit
(isearch-abort) ;; outside of let to restore outside global values